package com.deco.domain.vo.brand;

import com.free.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;

public class ActivityReportVo implements Serializable {

    private static final long serialVersionUID = 5173883298696395285L;

    private Long id;

    private String viewTitle;

    private String roundupContext;
 
    private String title;

    private String viewImg;

    private String context;

    private String skipUrl;

    private Integer status;
    
    private Date reporTime;

    private Date createTime;

    private Integer createBy;
    
    private String createByName;

    private Date updateTime;

    private Integer updateBy;
    
    private String updateByName;

    private String reportTimeStr;

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the viewTitle
     */
    public String getViewTitle() {
        return viewTitle;
    }

    /**
     * @param viewTitle the viewTitle to set
     */
    public void setViewTitle(String viewTitle) {
        this.viewTitle = viewTitle;
    }

    /**
     * @return the roundupContext
     */
    public String getRoundupContext() {
        return roundupContext;
    }

    /**
     * @param roundupContext the roundupContext to set
     */
    public void setRoundupContext(String roundupContext) {
        this.roundupContext = roundupContext;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the viewImg
     */
    public String getViewImg() {
        return viewImg;
    }

    /**
     * @param viewImg the viewImg to set
     */
    public void setViewImg(String viewImg) {
        this.viewImg = viewImg;
    }

    /**
     * @return the context
     */
    public String getContext() {
        return context;
    }

    /**
     * @param context the context to set
     */
    public void setContext(String context) {
        this.context = context;
    }

    /**
     * @return the skipUrl
     */
    public String getSkipUrl() {
        return skipUrl;
    }

    /**
     * @param skipUrl the skipUrl to set
     */
    public void setSkipUrl(String skipUrl) {
        this.skipUrl = skipUrl;
    }

    /**
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return the reporTime
     */
    public Date getReporTime() {
        return reporTime;
    }

    /**
     * @param reporTime the reporTime to set
     */
    public void setReporTime(Date reporTime) {
        this.reporTime = reporTime;
    }

    /**
     * @return the createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime the createTime to set
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return the createBy
     */
    public Integer getCreateBy() {
        return createBy;
    }

    /**
     * @param createBy the createBy to set
     */
    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    /**
     * @return the createByName
     */
    public String getCreateByName() {
        return createByName;
    }

    /**
     * @param createByName the createByName to set
     */
    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    /**
     * @return the updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime the updateTime to set
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return the updateBy
     */
    public Integer getUpdateBy() {
        return updateBy;
    }

    /**
     * @param updateBy the updateBy to set
     */
    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * @return the updateByName
     */
    public String getUpdateByName() {
        return updateByName;
    }

    /**
     * @param updateByName the updateByName to set
     */
    public void setUpdateByName(String updateByName) {
        this.updateByName = updateByName;
    }
    
    public String getReporTimeFmt() {
        return DateUtils.convert2String(reporTime,DateUtils.FormatEnum.yyyy_MM_dd_HH_mm_ss);
    }

    public String getReportTimeStr() {
        if(reporTime != null){
            return DateUtils.convert2String(reporTime, DateUtils.FormatEnum.yyyy_MM_dd);
        }
        return reportTimeStr;
    }

    public void setReportTimeStr(String reportTimeStr) {
        this.reportTimeStr = reportTimeStr;
    }

    @Override
    public String toString() {
        return "ActivityReportVo{" +
                "id=" + id +
                ", viewTitle='" + viewTitle + '\'' +
                ", roundupContext='" + roundupContext + '\'' +
                ", title='" + title + '\'' +
                ", viewImg='" + viewImg + '\'' +
                ", context='" + context + '\'' +
                ", skipUrl='" + skipUrl + '\'' +
                ", status=" + status +
                ", reporTime=" + reporTime +
                ", createTime=" + createTime +
                ", createBy=" + createBy +
                ", createByName='" + createByName + '\'' +
                ", updateTime=" + updateTime +
                ", updateBy=" + updateBy +
                ", updateByName='" + updateByName + '\'' +
                '}';
    }
}